Calculating length of the list recursively using guards throws Non-exhaustive patterns in function g

Understanding Haskell Recursion: Fixing the Non-exhaustive patterns in function go Error